@import "../common/vars.scss";
@import "../mixins/mixins.scss";
@include create(card){
    border-radius: $card-border-radius;
    border: 1px solid $card-border-color;
    background-color: $color-white;
    overflow: hidden;
    color: $color-text-primary;
    transition: 0.3s;

    @include when(shadow-always){
        box-shadow: $box-shadow-light;
    }

    @include when(shadow-hover){
        &:hover,
        &:focus {
            box-shadow: $box-shadow-light;
        }
    }

    @include e(header) {
        padding: #{$card-padding - 2 $card-padding};
        border-bottom: 1px solid $card-border-color;
        box-sizing: border-box;
        &:after{
            content: "";
            clear: both;
            display: block;
            width: 0;
            height: 0;
            visibility: hidden;
        }
        &.aiui-tab-card-header{
            padding: 0px;
        }
    }

    @include e(body) {
        padding: $card-padding;
        zoom:1;
        &:after{
            content: "";
            clear: both;
            display:block;
            width:0;
            height:0;
            visibility:hidden;
        }
    }
}